package com.example.commonapi.constant;

public enum TopicStatus {
    TOPIC_PUBLISH_SUCCESS(1),
    TOPIC_PUBLISH_FAILURE(2),
    TOPIC_DELETE_FAILURE(3),
    TOPIC_DELETE_SUCCESS(4),
    TOPIC_GET_SUCCESS(5),
    TOPIC_GET_FAILURE(6);

    private int status;

    @Override
    public String toString() {
        return "TopicStatus{" +
                "status=" + status +
                '}';
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    TopicStatus(Integer status) {
        this.status = status;
    }

}
